<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>分享页面</title>
	<meta name="viewport" content="initial-scale=0.5, maximum-scale=0.5, user-scalable=no, width=device-width">
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
	<meta content="telephone=no" name="format-detection" />
	<link rel="stylesheet" href="/css/mobile/mobile-base.css" />
	<link rel="stylesheet" href="/css/mobile/common.css" />
	<link rel="stylesheet" href="/css/mobile/result.css" />
	<style>
		.top-wrap {
			    width: 90%;
			    margin: 0 auto;
			    padding: 5% 0;
			    position: relative;
			    border: 8px solid #0d0d0d;
		}
		.txt {
			width: 90%;
		    margin: 20px auto;
		    text-align: left;
		    color: #fff;
		    line-height: 2.6rem;
		    color: rgba(255,255,255,0.8);
		}
	</style>
</head>
<body>
<div class="container center middle bgimg">
	<section class="Part">
		<div class="top-wrap bgimg halo">
			<div class="pageTit bgimg"></div>
			<div class="pageBody">
				<div class="square" id="square">
					<div class="teamImg-group">
						<div class="border-modA">
							<img src=""  class="team-img responseImg" alt="" title="" />
						</div>
						<span class="arrow arrow-t"></span>
						<span class="arrow arrow-r"></span>
						<span class="arrow arrow-b"></span>
						<span class="arrow arrow-l"></span>
					</div>
					<div class="team-name textset"></div>
					<div class="clearfix pr tc detail">
						<div class="fl">
							<p>团队力量</p>
							<p  class="num total"></p>
						</div>
						<div class="line"></div>
						<div class="fl">
							<p>你贡献了</p>
							<p  class="num private"></p>
						</div>
					</div>
					<div class="match-result bgimg win"></div>
				</div>
			</div>
		</div>
		<div class="txt">
			<span id="man-name"></span>在 "<span id="team-A"></span>" PK "<span id="team-B"></span>" 的比赛中表现勇猛, 为团队 "<span id="team-win">爸爸说的都队</span>" 大获全胜贡献了 <span id="power">123</span>力量！特此宣告天下，以资鼓励。
		</div> 
		<p class="mt30 tc"><span class="finger-l"></span><a href="#">我家年会也要这样玩游戏</a></p>
	</section>
</div>
<script src="/js/common/zepto.min.js"></script>
<script>
    function getParams() {   
       var url = window.location.search; //获取url中"?"符后的字串   
       var theRequest = new Object();   
       if (url.indexOf("?") != -1) {   
          var str = url.substr(1);   
          strs = str.split("&");   
          for(var i = 0; i < strs.length; i ++) {   
              //就是这句的问题
             theRequest[strs[i].split("=")[0]]=decodeURI(strs[i].split("=")[1]); 
             //之前用了unescape()
             //才会出现乱码  
          }   
       }   
       return theRequest;   
    }
	$(function() {
		$("#man-name").html(getParams().name);
		$("#team-A").html(getParams().win_team_name);
		$("#team-B").html(getParams().fail_team_name);
		$("#square").find(".team-img").attr("src",getParams().team_img);
		$("#square").find(".team-name").html(getParams().win_team_name);
		$("#square").find(".total").html(getParams().total);//团队力量
		$("#square").find(".private").html(getParams().private);//个人力量	
		$("#team-win").html(getParams().win_team);
		$("#power").html(getParams().private);
		
	})
</script>
</body>
</html>